<%-- 
    Document   : editWH
    Created on : May 19, 2013, 7:00:55 PM
    Author     : Vitalii D.
--%>
<%@page import="com.charlie.beans.Warehouse"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%  
    //no caching
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0);
%>

<%@include file="/header.jsp"%>

<div class="left_side"> 
    <jsp:include page="/blocks/conditionalLeftBar.jsp" />  
</div>

<div class="right_side">
    <h2 class="content_title" >Edit warehouse</h2>
    <%
        Warehouse wh = (Warehouse) request.getAttribute("wh");
    %>
    <div class="white_block">
        <h3> <%= wh.getName() %> </h3>
        <table class="typycal_table">
            <tr>
                <td>
                    <form method="post">
                        Shipment Rate: &nbsp &nbsp &nbsp <input maxlength="5" type ="text" name ="shipmentRate" size ="30%" value="<%=wh.getShipmentRate()%>" onchange="if (this.value.match(/^[1-9]+[0-9]*$/) === null) {alert('It is not a number'); this.value = ''; }"> <p>
                        Shipment Duration: <input maxlength="5" type ="text" name ="shipmentDuration" size ="30%" value="<%=wh.getShipmentDuration()%>" onchange="if (this.value.match(/^[1-9]+[0-9]*$/) === null) {alert('It is not a number'); this.value = ''; }"> <p>
                        <input type ="submit" value="Save" name="Save">
                    </form>
                </td>
        </table>
    </div>
</div>   
    
<jsp:include page="/footer.jsp" />
